package jschool.util;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class EstiloVisual {

	private static EstiloVisual instancia = null;

	public static EstiloVisual getInstancia() {
		if (instancia == null) {
			instancia = new EstiloVisual();
		}
		return instancia;
	}

	public void setLookAndFeel() {
		String estilo = "org.jvnet.substance.skin.SubstanceBusinessBlackSteelLookAndFeel";

		try {
			UIManager.setLookAndFeel(estilo);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
